window.phoenix&&(window.phoenix.buildInfo||(window.phoenix.buildInfo=[]),-1===window.phoenix.buildInfo.findIndex((t=>"Phoenix-unav"===t.MFE))&&window.phoenix.buildInfo.push({MFE:"Phoenix-unav",VERSION:"rc-phoenix-unav-1.1.7127.1280676399-0e60e6ff-24-g13dabfe",LASTCOMMITDATETIME:"2024-07-18T14:40:54-07:00"})) /*! * * ============= BUILD INFO ============= * MFE: Phoenix-unav * chunkName: component-clientlibs/utility-transactional.v1/utility-transactional * VERSION: rc-phoenix-unav-1.1.7127.1280676399-0e60e6ff-24-g13dabfe * BRANCH: release/fix-unav0722 * COMMITHASH: 13dabfe49c3b891f6dff5d0a3f735594995f7d83 * LASTCOMMITDATETIME: 2024-07-18T14:40:54-07:00 * ============= If you're reading this, why not come work with us? https://www.t-mobile.com/careers ============= */,function(){"use strict";var t={53:function(t,e,o){},651:function(t,e,o){o.d(e,{fF:function(){return s},go:function(){return i}});o(53);function s(){return Boolean(document.querySelector("tmo-digital-header")||document.querySelector("tmo-digital-footer"))}function i(t){return JSON.parse(t).reduce(((t,e)=>(t[e.customerType]=e.targetURL,t)),{})}}},e={};function o(s){var i=e[s];if(void 0!==i)return i.exports;var n=e[s]={exports:{}};return t[s](n,n.exports,o),n.exports}o.d=function(t,e){for(var s in e)o.o(e,s)&&!o.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},function(){const t={dev:{baseUrl:"https://digital-dev.t-mobile.com/self-service-flex/v1",loginRedirect:!1,logoutRedirect:!1,mytmoHost:"https://e9.my.t-mobile.com",iamHost:"https://ppd2.account.t-mobile.com",injectMPScript:!0,knownDomains:{tmo:"https://qlab02.digital.t-mobile.com",mytmo:"https://e2.my.t-mobile.com",metro:"https://q2.metrobyt-mobile.com",secureId:"https://eui3.account.t-mobile.com"},mpScriptURLs:["https://tmobilees.mpeasylink.com/mpel/mpel.js","https://digital-dev.t-mobile.com/client/assets/scripts/mp_linkcode.js","https://digital-dev.t-mobile.com/client/assets/scripts/motionpoint_v2.js"]},uat:{loginRedirect:!1,baseUrl:"https://digital-qat.t-mobile.com/self-service-flex/v1",logoutRedirect:!1,mytmoHost:"https://e3.my.t-mobile.com",iamHost:"https://ppd2.account.t-mobile.com",injectMPScript:!0,knownDomains:{tmo:"https://qlab03.digital.t-mobile.com",mytmo:"https://e4.my.t-mobile.com",metro:"https://q2.metrobyt-mobile.com",secureId:"https://eui7.account.t-mobile.com"},mpScriptURLs:["https://tmobilees.mpeasylink.com/mpel/mpel.js","https://digital-qat.t-mobile.com/client/assets/scripts/mp_linkcode.js","https://digital-qat.t-mobile.com/client/assets/scripts/motionpoint_v2.js"]},prod:{baseUrl:"https://www.t-mobile.com/self-service-flex/v1",loginRedirect:!1,logoutRedirect:!1,mytmoHost:"https://my.t-mobile.com",iamHost:"https://account.t-mobile.com",injectMPScript:!0,knownDomains:{tmo:"https://www.t-mobile.com",mytmo:"https://my.t-mobile.com",metro:"https://www.metrobyt-mobile.com",secureId:"https://account.t-mobile.com"},mpScriptURLs:["https://tmobilees.mpeasylink.com/mpel/mpel.js","https://www.t-mobile.com/client/assets/scripts/mp_linkcode.js","https://www.t-mobile.com/client/assets/scripts/motionpoint_v2.js"]},stage:{baseUrl:"https://staging.t-mobile.com/self-service-flex/v1",loginRedirect:!1,logoutRedirect:!1,mytmoHost:"https://e3.my.t-mobile.com",iamHost:"https://ppd2.account.t-mobile.com",injectMPScript:!0,knownDomains:{tmo:"https://staging.t-mobile.com",mytmo:"https://e3.my.t-mobile.com",metro:"https://stg.metrobyt-mobile.com",secureId:"https://ppd2.account.t-mobile.com"},mpScriptURLs:["https://tmobilees.mpeasylink.com/mpel/mpel.js","https://staging.t-mobile.com/client/assets/scripts/mp_linkcode.js","https://staging.t-mobile.com/client/assets/scripts/motionpoint_v2.js"]}};function e(){const e=window.unavConfig;let o=t.prod;if(!e)return o;const s=e.env&&t[e.env]?e.env:"prod";o={...t[s],...e};const i=t[s],n={...i?.knownDomains,...e?.knownDomains};return o.knownDomains=n,o}const s="/unav";new class{customerUserStateResponse;baseURL=e().baseUrl;baseURLDomain=new URL(this.baseURL).origin;customerUserStateResponsePromise;fetchLock=null;async getCustomerUserStateResponse(){return await this.customerUserStateResponsePromise||(this.fetchLock||(this.fetchLock=this.fetchData()),await this.fetchLock),this.customerUserStateResponsePromise}async fetchData(){try{const t=await fetch(`${this.baseURL}${s}`,{method:"POST"}),e=await t.json();this.customerUserStateResponsePromise=Promise.resolve(e)}catch(t){this.customerUserStateResponsePromise=Promise.reject(t)}finally{this.fetchLock=null}}};function i(t,o){const s=e().knownDomains;let i=o;return t?.querySelectorAll("a").forEach((t=>{i=o||t.getAttribute("href");const e=t.getAttribute("data-domain-mapping");if(i&&e&&s&&s[e]&&((n=i).startsWith("http://")||n.startsWith("https://"))){const o=new URL(i);i=`${s[e]}${o.pathname+o.search}`,t.setAttribute("href",i)}else i&&e&&s&&s[e]&&!i.startsWith("tel")&&(i=`${s[e]}${i}`,t.setAttribute("href",i));var n})),i}var n=o(651);window.Alpine?.data("unavTransactional",(()=>({href:"",linkPath:"",init(){this.linkPath=this.$el?.dataset.utilitytransactionalDefaultlinkpath,window.phoenix.bus?.subscribe("PLATFORM_AUTHORIZATION","SET_AUTH_STATE",(t=>{this.onAuthStateChanged(t?.payload?.authState??"")}));const t=document.body.dataset.authState;t&&this.onAuthStateChanged(t)},onAuthStateChanged(t){if(t){const e=(0,n.go)(this.$el?.dataset.utilitytransactionalCustomerurlmapping||"[]");this.href=e[t]??this.linkPath}else this.href=this.linkPath;(0,n.fF)()&&(this.href=i(this.$el,this.href))}})))}()}();